package service;

import pojo.DoctorWork;
import java.util.List;

public interface DoctorWorkService {
    // 基本CRUD方法
    int addDoctorWork(DoctorWork doctorWork);
    int deleteDoctorWork(String day, String docId);
    int updateDoctorWork(DoctorWork doctorWork);
    DoctorWork getDoctorWorkByDayAndDocId(String day, String docId);
    List<DoctorWork> getDoctorWorksByDocId(String docId);
    List<DoctorWork> getDoctorWorksByDay(String day);
    List<DoctorWork> getAllDoctorWorks();

    // 订单数量相关方法
    DoctorWork getDoctorWorkCount(String day, String docId);
    boolean updateCountLeft(String day, String docId, Integer countLeft);
    boolean updateOrderedCount(String day, String docId, Integer orderedCount);
    boolean bookAppointment(String day, String docId);
    boolean cancelAppointment(String day, String docId);

    List<DoctorWork> getDoctorWorksByParentDeptId(Integer parentId);
}